package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 陆小根
 * date: 2022/05/05
 * Description:
 */
// Rest模式
@RestController
@RequestMapping("/books")
public class BookController {

  @GetMapping
  public String getById() {
    System.out.println("springboot is running base configuration ...");
    return "springboot is running base configuration ...";
  }

}
